﻿using System;
using Spring.Context;
using Spring.Context.Support;

namespace SpringSeries.Core.IndexMatching
{
    class Program
    {
        static void Main(string[] args)
        {            
            IApplicationContext _ctx = ContextRegistry.GetContext();

            Person _person = (Person)_ctx.GetObject("Matteo");
            Console.WriteLine(_person.FirstName);
            Console.WriteLine(_person.Age);

            Console.Read();
        }
    }
}
